﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Simple_CommandID_Client
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            leetSocket1.connect();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            byte[] customHeader = new byte[leetSocket1.CustomHeaderLengthValue];
            byte commandID = 100;

            customHeader[0] = commandID;

            leetSocket1.sendObject(checkBox1.Checked, customHeader);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            byte[] customHeader = new byte[leetSocket1.CustomHeaderLengthValue];
            byte commandID = 123;

            customHeader[0] = commandID;

            leetSocket1.sendObject(textBox1.Text, customHeader);
        }
    }
}
